.player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #181818;
    border-top: 1px solid #282828;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 100;
}

/* 左侧当前播放信息区域 */
.player-bar .now-playing {
    display: flex;
    align-items: center;
    width: 30%;
    min-width: 180px;
}

.player-bar .track-info {
    display: flex;
    align-items: center;
    flex: 1;
}

.player-bar .track-image {
    width: 56px;
    height: 56px;
    margin-right: 14px;
    flex-shrink: 0;
    position: relative;
    transition: transform 0.2s ease;
}

.player-bar .track-image:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.player-bar .track-image::after {
    content: "\f03e";
    font-family: "Font Awesome 5 Free";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    color: rgba(255, 255, 255, 0);
    background-color: rgba(29, 185, 84, 0);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.player-bar .track-image:hover::after {
    content: "\f144";  /* fa-play-circle */
    color: rgba(255, 255, 255, 1);
    background-color: rgba(29, 185, 84, 0.7);
}

.player-bar .track-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.player-bar .track-details {
    max-width: calc(100% - 70px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.player-bar .track-name {
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
}

.player-bar .artist-name {
    font-size: 12px;
    color: #b3b3b3;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-bar .track-actions {
    display: flex;
    margin-left: 20px;
}

.player-bar .action-btn {
    background: none;
    border: none;
    color: #b3b3b3;
    font-size: 16px;
    padding: 8px;
    cursor: pointer;
    transition: color 0.2s;
}

.player-bar .action-btn:hover {
    color: #fff;
}

/* 中间播放控制区域 */
.player-bar .player-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 40%;
    max-width: 722px;
}

.player-bar .control-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.player-bar .control-btn {
    background: none;
    border: none;
    color: #b3b3b3;
    font-size: 16px;
    padding: 8px;
    margin: 0 8px;
    cursor: pointer;
    transition: color 0.2s;
}

.player-bar .play-btn {
    background: #fff;
    border: none;
    color: #000;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0 16px;
    transition: transform 0.2s;
}

.player-bar .play-btn:hover {
    transform: scale(1.08);
}

.player-bar .playback-bar {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 600px;
}

.player-bar .current-time,
.player-bar .total-time {
    font-size: 12px;
    color: #b3b3b3;
    min-width: 40px;
    text-align: center;
}

.player-bar .progress-bar {
    height: 4px;
    background-color: #535353;
    border-radius: 2px;
    flex-grow: 1;
    margin: 0 8px;
    position: relative;
    cursor: pointer;
}

.player-bar .progress {
    height: 100%;
    background-color: #b3b3b3;
    border-radius: 2px;
    position: relative;
}

.player-bar .progress-handle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #fff;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.player-bar .progress-bar:hover .progress {
    background-color: #1DB954;
}

.player-bar .progress-bar:hover .progress-handle {
    opacity: 1;
}

/* 右侧选项区域 */
.player-bar .player-options {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 30%;
    min-width: 180px;
}

.player-bar .option-btn {
    background: none;
    border: none;
    color: #b3b3b3;
    font-size: 16px;
    padding: 8px;
    margin: 0 8px;
    cursor: pointer;
    transition: color 0.2s;
}

.player-bar .option-btn:hover {
    color: #fff;
}

.player-bar .volume-control {
    display: flex;
    align-items: center;
    width: 140px;
}

.player-bar .volume-bar {
    height: 4px;
    background-color: #535353;
    border-radius: 2px;
    width: 80px;
    position: relative;
    cursor: pointer;
}

.player-bar .volume-level {
    height: 100%;
    background-color: #b3b3b3;
    border-radius: 2px;
}

.player-bar .volume-handle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #fff;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.player-bar .volume-bar:hover .volume-level {
    background-color: #1DB954;
}

.player-bar .volume-bar:hover .volume-handle {
    opacity: 1;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .player-bar .player-options {
        width: 20%;
    }
    
    .player-bar .player-controls {
        width: 50%;
    }
    
    .player-bar .volume-control {
        width: 100px;
    }
    
    .player-bar .volume-bar {
        width: 50px;
    }
}

@media (max-width: 576px) {
    .player-bar {
        padding: 0 10px;
    }
    
    .player-bar .now-playing {
        width: 35%;
        min-width: 100px;
    }
    
    .player-bar .track-image {
        width: 40px;
        height: 40px;
        margin-right: 8px;
    }
    
    .player-bar .track-actions {
        display: none;
    }
    
    .player-bar .player-controls {
        width: 50%;
    }
    
    .player-bar .player-options {
        width: 15%;
    }
    
    .player-bar .volume-control {
        display: none;
    }
}